%	$Date: 2009-02-17 23:20:27 +0100 (Di, 17 Feb 2009) $
%	$Revision: 12 $
%	$Author: i2109138 $
%	$Id: header.tex 12 2009-02-17 22:20:27Z i2109138 $

 \documentclass[a4paper,11pt]{scrartcl} 
 
 \usepackage[english]{babel}  
 \usepackage[utf8]{inputenc} 
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 
\usepackage[left=2.5cm, right=2.5cm, top=2.5cm, bottom=3cm, a4paper]{geometry}
\usepackage[pdftex]{graphics}
\usepackage[nofancy]{svninfo}
\usepackage{fancyhdr}
\usepackage{vaucanson-g}

\usepackage{%
  array, booktabs,dcolumn,rotating,shortvrb,tabularx,units,url,xcolor,lastpage,longtable,lscape,multirow,amssymb,amsmath,float,chngpage,colortbl, helvet
 }
 
% uncomment to use glossay (use \printglossary)
%\usepackage[style=altlist,hypertoc=true,hyper=true,number=none]{glossary}
%\setacronymnamefmt{\gloshort}
%\makeglossary   
%\makeindex
 
%
%	Titlepage makros
%

\newcommand{\setAuthor}[1]		{\renewcommand{\author}{#1}}
\newcommand{\setTitle}[1]  		{\renewcommand{\title}{#1}}

\makeatletter
\@ifundefined{subtitle}{\newcommand{\setSubtitle}[1] 	{\newcommand{\subtitle}{#1}}}{\newcommand{\setSubtitle}[1] 	{\renewcommand{\subtitle}{#1}}}
\makeatother
	
\newcommand{\setModul}[1]  		{\newcommand{\modul}{#1}}
\newcommand{\setStudy}[1]  		{\newcommand{\study}{#1}}
\newcommand{\setLecturer}[1]  	{\newcommand{\lecturer}{#1}}
\newcommand{\setStudentnr}[1]  	{\newcommand{\studentnr}{#1}}
\newcommand{\setStatus}[1]		{\newcommand{\status}{#1}}
\newcommand{\setRepos}[1]		{\newcommand{\repos}{#1}}

%
% new commands
%

%High level use case
\newcommand{\hluc}[7]{%
\begin{table}[H]
	\begin{center}
	\begin{tabular*}{\textwidth}{|p{2cm}|p{13.1cm}|}
	\hline	
		\multicolumn{2}{|l|}{%
			\hspace{-0.92em}
			\begin{tabular}{l|l|l|l|l|l}%
			\cellcolor[gray]{.8}Code:& #1 & \cellcolor[gray]{.8}Name:& #2 & \cellcolor[gray]{.8}Package: & #3 \\
			\end{tabular}
		}\\
	\hline
	\cellcolor[gray]{.8}Description: & #7\\
	\hline
	\cellcolor[gray]{.8}Refined by: & #6\\
	\hline
		
		\multicolumn{2}{|l|}{%
			\hspace{-0.92em}
			\begin{tabular}{l|l|l|l}%
			\cellcolor[gray]{.8}Version: & #4 & \cellcolor[gray]{.8}Author: & #5  \\
			\end{tabular}
		}\\
	\hline
	\end{tabular*}
	\end{center}
	\caption{#1 - #2}
	\label{hluc:#1}
\end{table}%
}

% specific use case
\newcommand{\spuc}[6]{%
	\begin{table}[H]
		\begin{center}
			\begin{tabular*}{\textwidth}{|p{2.3cm}|p{12.8cm}|}
				\hline	
				\multicolumn{2}{|l|}{%
				\hspace{-0.92em}
				\begin{tabular}{l|l|l|l|l|l}%
					\cellcolor[gray]{.8}Code:& #1 & \cellcolor[gray]{.8}Name:& #2 & \cellcolor[gray]{.8}Package: & #3 \\
				\end{tabular}
				}\\
				\hline
				#6
				\multicolumn{2}{|l|}{%
				\hspace{-0.92em}
				\begin{tabular}{l|l|l|l}%
					\cellcolor[gray]{.8}Version: & #4 & \cellcolor[gray]{.8}Author: & #5  \\
				\end{tabular}
				}\\
				\hline
			\end{tabular*}
		\end{center}
	\caption{#1 - #2}
	\label{spuc:#1}
	\end{table}%
}


%
%	Footer/Header Definition
%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\chead{\nouppercase{\itshape \leftmark}}
\lfoot{\author}
\cfoot{}
\rfoot{\bfseries{\thepage} - \pageref{LastPage}}

 %
 %	Colors
 %
	\definecolor{gray}{cmyk}{0.60,0.52,0.51,0.21}
	\definecolor{brown}{cmyk}{0,0.81,1,0.60}
	\definecolor{fontys_pink_dark}{cmyk}{0.73,0.92,0.44,0.62}
	\definecolor{fontys_pink_med}{cmyk}{0.67,0.93,0.31,0.20}
	\definecolor{fontys_pink_light}{cmyk}{0.18 , 0.44, 0.0, 0.0}
	\definecolor{lightergray}{cmyk}{0.03,0.02,0.02,0}
	\definecolor{fontysgreen1}{rgb}{0.4,0.8,0}
	\definecolor{fontysgreen2}{rgb}{0.6,0.8,0.2}
 
 
 \setlength{\parindent}{0pt} 

	 \newcounter{appendix}
	 \renewcommand{\appendix}[1]
	 {
	 	\stepcounter{appendix}
		\section{#1}
	 }
	
	\usepackage{listings}	
	\lstset{	basicstyle		=\footnotesize,
			 breaklines,
			 numbers		=left,
			 language		=Java,
			 commentstyle	=\textit{ \color{gray}},
			 keywordstyle	=\color{fontys_pink_med},
			 identifierstyle	=\texttt{ \color{black}},
			 breaklines	=true,
			 showspaces	=false,
			 frame		=tlrb,
			 frameround	=rrrr,
			 tabsize		=1%  
			}

%BUGFIX Listings 1.4 in combination with KOMA			
\makeatletter
\@ifundefined{float@listhead}{}{%
    \renewcommand*{\lstlistoflistings}{%
        \begingroup
    	    \if@twocolumn
                \@restonecoltrue\onecolumn
            \else
                \@restonecolfalse
            \fi
            \float@listhead{\lstlistlistingname}%
            \setlength{\parskip}{\z@}%
            \setlength{\parindent}{\z@}%
            \setlength{\parfillskip}{\z@ \@plus 1fil}%
            \@starttoc{lol}%
            \if@restonecol\twocolumn\fi
        \endgroup
    }%
}
\makeatother

\lstset{showstringspaces=false}

\usepackage[colorlinks=true,linkcolor=darkgray,citecolor =darkgray,plainpages=true,pdfpagelabels,pdfpagemode=FullScreen,bookmarks=true]{hyperref}
 % 
 % EOF 
 % 
